package top.rainbowecho.notify.domain.model.email;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.mail.javamail.JavaMailSender;
import org.springframework.stereotype.Component;
import org.thymeleaf.TemplateEngine;
import top.rainbowecho.notify.domain.model.email.db.repository.TemplateMapper;

import javax.annotation.Resource;

/**
 * @author rainbow
 * @since 2019/11/28 14:15
 */
@Component
public class QqEmail extends Mail {

    @Value("${spring.mail.username}")
    @Override
    public void setFrom(String from) {
        super.setFrom(from);
    }

    @Autowired
    @Override
    public void setSender(JavaMailSender sender) {
        super.setSender(sender);
    }

    @Autowired
    @Override
    public void setTemplateEngine(TemplateEngine templateEngine) {
        super.setTemplateEngine(templateEngine);
    }

    @Override
    @Resource
    public void setTemplateMapper(TemplateMapper templateMapper) {
        super.setTemplateMapper(templateMapper);
    }
}
